/*
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2021-08-18 10:00:34
 * @LastEditors: GGB
 * @LastEditTime: 2021-08-18 10:11:27
 */
import 'package:flutter/material.dart';
import 'package:flutter_data_center/components/loading.dart';
import 'package:flutter_data_center/controller/wristband_controller.dart';
import 'package:get/get.dart';

import 'wristband_detail_item_card.dart';

class WristbandDetailCardList extends StatelessWidget {
  const WristbandDetailCardList({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) => GetBuilder<WristbandController>(
        builder: (_controller) => _controller.detail != null
            ? Row(
                children: [
                  WristbandDetailItemCard(
                      title: "心率",
                      count: _controller.detail.rate,
                      bg: "#FF327C"),
                  SizedBox(width: 48),
                  WristbandDetailItemCard(
                      title: "体温",
                      count: _controller.detail.temperature,
                      bg: "#03D055"),
                ],
              )
            : Loading(),
      );
}
